<#--
  - Copyright 2009 Vladimir Ritz Bossicard
  -
  - This file is part of OraDoc.
  -
  - OraDoc is free software: you can redistribute it and/or modify it under the
  - terms of the GNU General Public License as published by the Free Software 
  - Foundation, either version 3 of the License, or (at your option) any later 
  - version.
  -
  - This program is distributed in the hope that it will be useful, but WITHOUT
  - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 
  - more details.
  -
  - You should have received a copy of the GNU General Public License along with 
  - this program. If not, see <http://www.gnu.org/licenses/>.
  -
  - Author      : Vladimir Ritz Bossicard
  - Version     : $Revision: 20 $
  - Last edit   : $Date: 2009-03-25 12:43:30 +0000 (Wed, 25 Mar 2009) $
  - Last editor : $Author: vbossica $
  -->

<#macro header level project>
<html>
    <head>
        <title>${project}</title>
        <link href="${level}/oradoc.css" rel="stylesheet" type="text/css">
    </head>
    <body>
</#macro>

<#macro menu level selected>
    <div class="tabs">
    <#if selected == "MAIN"><img border="0" src="${level}/images/main-page-inactive.gif"/><#else><a href="${level}/index.html"><img border="0" src="${level}/images/main-page-active.gif"/></a></#if> 
    <#if selected == "TABLES"><img border="0" src="${level}/images/tables-inactive.gif"/><#else><a href="${level}/tables-sorted.html"><img border="0" src="${level}/images/tables-active.gif"/></a></#if>
    <#if selected == "VIEWS"><img border="0" src="${level}/images/views-inactive.gif"/><#else><a href="${level}/views-sorted.html"><img border="0" src="${level}/images/views-active.gif"/></a></#if>
<#--
    <a href="${level}/packages.html">Packages</a> - 
    <a href="${level}/procedures.html">Procedures/Functions</a>
 -->
    </div>
</#macro>

<#macro indexletters keys>
    <div class="qindex">
    <#list keys as key>
        <a class="qindex" href="#letter_${key}">${key}</a><#if key_has_next> | </#if>
    </#list>
    </div><p>
</#macro>

<#macro tables level selected>
<div class="tabs">
    <#if selected == "ALPHA"><img border="0" src="${level}/images/alphabetical-inactive.gif"/><#else><a href="${level}/tables-sorted.html"><img border="0" src="${level}/images/alphabetical-active.gif"/></a></#if> 
    <#if selected == "LIST"><img border="0" src="${level}/images/table-list-inactive.gif"/><#else><a href="${level}/tables.html"><img border="0" src="${level}/images/table-list-active.gif"/></a></#if> 
</div>
</#macro>

<#macro tablelink name>
    <a class="el" href="tables/${name?lower_case}.html">${name}</a>
</#macro>

<#macro tablename name>
    <#if name?starts_with("$$$")>
        <a name="letter_${name?substring(3)}"/>
        <table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="letterlink">&nbsp;&nbsp;${name?substring(3)}&nbsp;&nbsp;</div></td></tr></table>
    <#else>
        <@macros.tablelink name="${name}"/>
    </#if>
</#macro>

<#macro views level selected>
<div class="tabs">
    <#if selected == "ALPHA"><img border="0" src="${level}/images/alphabetical-inactive.gif"/><#else><a href="${level}/views-sorted.html"><img border="0" src="${level}/images/alphabetical-active.gif"/></a></#if> 
    <#if selected == "LIST"><img border="0" src="${level}/images/view-list-inactive.gif"/><#else><a href="${level}/views.html"><img border="0" src="${level}/images/view-list-active.gif"/></a></#if> 
</div>
</#macro>

<#macro viewlink name>
    <a class="el" href="views/${name?lower_case}.html">${name}</a>
</#macro>

<#macro viewname name>
    <#if name?starts_with("$$$")>
        <a name="letter_${name?substring(3)}"/>
        <table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="letterlink">&nbsp;&nbsp;${name?substring(3)}&nbsp;&nbsp;</div></td></tr></table>
    <#else>
        <@macros.viewlink name="${name}"/>
    </#if>
</#macro>

<#macro packages level>
    <a href="${level}/packages.html">Packages List</a> - <a href="${level}/packages-sorted.html">View Alphabetical</a> - <a href="${level}/packages-members.html">Package Members</a>
    <p>
</#macro>

<#macro footer project>
        <p><hr size="1">
        <div class="footer">Generated on ${current} for ${project} by <a class="footer" href="http://code.google.com/p/oradoc">OraDoc ${info.version}</a></div>
    </body>
</html>
</#macro>
